﻿using MDK.Device;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MDK.Winform
{
    public partial class frmSetTime : Form
    {
        public frmSetTime()
        {
            InitializeComponent();
            dateTimePicker1.MinDate = DateTime.Now;
        }
        public DateTime _TimingTime;
        public PalletStatus PalletType;
        private void button2_Click(object sender, EventArgs e)

        {
            this.DialogResult = DialogResult.No;
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            _TimingTime = dateTimePicker1.Value;
            if (_TimingTime < DateTime.Now)
            {
                FastMessageBox.Warnning("设置失败时间需大于现在时间");
                return;
            }
            if (radAusbio.Checked)
            {
                PalletType = PalletStatus.WaitToAusbio;
            }
            else
            {
                PalletType = PalletStatus.WaitToTecen;
            }
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
